<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="generator" content="PhpED 5.8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="creation-date" content="01/01/2009">
<meta name="revisit-after" content="15 days">
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="Uml.css">
<link rel="stylesheet" type="text/css" href="Stuff/js/jquery.contextMenu.css">
<link rel="stylesheet" type="text/css" href="Stuff/js/colorbox/example1/colorbox.css">
<script type="text/javascript" src="Stuff/js/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="Stuff/js/js/jquery-ui-1.8.11.custom.min.js"></script>
<script type="text/javascript" src="Stuff/js/jquery.contextMenu.js"></script>
<script type="text/javascript" src="Stuff/js/colorbox/colorbox/jquery.colorbox.js"></script>
</head>
<script type="text/javascript">

$(document).ready(function()
{
 $("#ClassName").width($(".classbox").width()-50);


    $(function() {
        $( "#draggable" ).draggable();
    });

    
       $(".classbox").contextMenu(
       {
                menu: 'myMenu'    
       },
       function(action, el, pos) {         
           //alert('Action: ' + action + '\n\n' +'Element ID: ' + $(el).attr('id') + '\n\n' + 'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' +  'X:' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)' );    
           $.colorbox({width:"30%", height:"30%",href:"addClassFromInterface.php"});


       
       });  
}); 

</script>


<body>
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Refresh</a></li>
<li><a href="#">New Interface</a></li>
<li><a href="#">New Class</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>

<ul id="myMenu" class="contextMenu">
    <li class="edit">
        <a href="#edit">Edit Name</a>
    </li>
    <li class="cut separator">
        <a href="#cut">Add Method</a>     
    </li>     
    <li class="copy">         
        <a href="#copy">Add Attribute</a>     
    </li>     
   
  </ul> 

 <?php
 $link=mysqli_connect('localhost','uml','uml','uml');

 include("/UClass.php");
 include("/Diagram.php");
 include("/UML.php");
        $U = new UML();
    $U->NewClass('First');
    $U->NewClass('Second');
    $U->NewClass('Third');
    $U->DeleteClass('Second');

    Diagram::ShowDiagram($U);
    
 mysqli_close($link);   
?> 

</body>
</html>
